Optimal. Leaf size=225 \[ -\frac {\sqrt {3} \log \left (\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}-\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}+1\right )}{4 b}+\frac {\sqrt {3} \log \left (\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}+\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}+1\right )}{4 b}+\frac {\tan ^{-1}\left (\sqrt {3}-\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{2 b}-\frac {\tan ^{-1}\left (\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}+\sqrt {3}\right )}{2 b}-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.30, antiderivative size = 225, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2575, 295, 634, 618, 204, 628, 203} \[ -\frac {\sqrt {3} \log \left (\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}-\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}+1\right )}{4 b}+\frac {\sqrt {3} \log \left (\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}+\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}+1\right )}{4 b}+\frac {\tan ^{-1}\left (\sqrt {3}-\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{2 b}-\frac {\tan ^{-1}\left (\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}+\sqrt {3}\right )}{2 b}-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 203
Rule 204
Rule 295
Rule 618
Rule 628
Rule 634
Rule 2575
Rubi steps
\begin {align*} \int \frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)} \, dx &=-\frac {3 \operatorname {Subst}\left (\int \frac {x^4}{1+x^6} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}-\frac {\operatorname {Subst}\left (\int \frac {-\frac {1}{2}+\frac {\sqrt {3} x}{2}}{1-\sqrt {3} x+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}-\frac {\operatorname {Subst}\left (\int \frac {-\frac {1}{2}-\frac {\sqrt {3} x}{2}}{1+\sqrt {3} x+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}-\frac {\operatorname {Subst}\left (\int \frac {1}{1-\sqrt {3} x+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}-\frac {\operatorname {Subst}\left (\int \frac {1}{1+\sqrt {3} x+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}-\frac {\sqrt {3} \operatorname {Subst}\left (\int \frac {-\sqrt {3}+2 x}{1-\sqrt {3} x+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}+\frac {\sqrt {3} \operatorname {Subst}\left (\int \frac {\sqrt {3}+2 x}{1+\sqrt {3} x+x^2} \, dx,x,\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}-\frac {\sqrt {3} \log \left (1+\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}-\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}+\frac {\sqrt {3} \log \left (1+\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}+\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}+\frac {\operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,-\sqrt {3}+\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{2 b}+\frac {\operatorname {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,\sqrt {3}+\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{2 b}\\ &=\frac {\tan ^{-1}\left (\sqrt {3}-\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{2 b}-\frac {\tan ^{-1}\left (\sqrt {3}+\frac {2 \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{2 b}-\frac {\tan ^{-1}\left (\frac {\sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{b}-\frac {\sqrt {3} \log \left (1+\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}-\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}+\frac {\sqrt {3} \log \left (1+\frac {\cos ^{\frac {2}{3}}(a+b x)}{\sin ^{\frac {2}{3}}(a+b x)}+\frac {\sqrt {3} \sqrt [3]{\cos (a+b x)}}{\sqrt [3]{\sin (a+b x)}}\right )}{4 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.03, size = 55, normalized size = 0.24 \[ \frac {3 \sqrt [3]{\sin (a+b x)} \sqrt [6]{\cos ^2(a+b x)} \, _2F_1\left (\frac {1}{6},\frac {1}{6};\frac {7}{6};\sin ^2(a+b x)\right )}{b \sqrt [3]{\cos (a+b x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.08, size = 0, normalized size = 0.00 \[ \int \frac {\cos ^{\frac {2}{3}}\left (b x +a \right )}{\sin \left (b x +a \right )^{\frac {2}{3}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos \left (b x + a\right )^{\frac {2}{3}}}{\sin \left (b x + a\right )^{\frac {2}{3}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.12, size = 44, normalized size = 0.20 \[ -\frac {3\,{\cos \left (a+b\,x\right )}^{5/3}\,{\sin \left (a+b\,x\right )}^{1/3}\,{{}}_2{\mathrm {F}}_1\left (\frac {5}{6},\frac {5}{6};\ \frac {11}{6};\ {\cos \left (a+b\,x\right )}^2\right )}{5\,b\,{\left ({\sin \left (a+b\,x\right )}^2\right )}^{1/6}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\cos ^{\frac {2}{3}}{\left (a + b x \right )}}{\sin ^{\frac {2}{3}}{\left (a + b x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________